package com.aa;

import javax.validation.constraints.NotNull;


public class TestDemo {

    private String id;
    @NotNull(message = "姓名不能为空")
    private String name;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
